﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AreaList.aspx.cs" Inherits="WebSystemAdmin.BasicSetting.AreaList" %>
<%@ Import Namespace="Enter.Common" %>
<%@ Import Namespace="Enter.Entity" %>
<%@ Register Assembly="aspNetPager" Namespace="Cncard.Web" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title></title>
	<link href="../css/admin_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<form id="form1" runat="server">
	<div>
		<table class="tb_data" cellpadding="0" cellspacing="1">
			<tr class="tr_title">
				<th colspan="8">
					<a href="AreaEdit.aspx" class="A_Add"> 添加</a>
				</th>
			</tr>
			<tr class="tr_head">
				<td>ID</td>
				<td>AreaNO</td>
				<td>地域名称</td>
				<td>上级ID</td>
				<td>缩写</td>
				<td>使用状态</td>
				<td>操作</td>
			</tr>
				<asp:Repeater ID="rp_Data" runat="server" onitemcommand="rp_Data_ItemCommand">
				<ItemTemplate>
					<tr class='<%#Container.ItemIndex%2==0?"tr_content_j":"tr_content_o" %>'>
						<td><asp:Label ID="lbl_ID" runat="server" Text='<%#Eval("ID")%>'></asp:Label></td>
						<td><asp:Label ID="lbl_AreaNO" runat="server" Text='<%#Eval("AreaNO")%>'></asp:Label></td>
						<td><asp:Label ID="lbl_AreaName" runat="server" Text='<%#Eval("AreaName")%>'></asp:Label></td>
						<td><asp:Label ID="lbl_ParentID" runat="server" Text='<%#Eval("ParentID")%>'></asp:Label></td>
						<td><asp:Label ID="lbl_abbreviation" runat="server" Text='<%#Eval("abbreviation")%>'></asp:Label></td>
						<td><asp:Label ID="lbl_Status" runat="server" Text='<%# EnumHelper.GetEnumCNNameFromEnum((T9002_AreaEntity.EnumStatus)(byte)Eval("Status"))%>'></asp:Label></td>
						<td><div> <a href='AreaEdit.aspx?ID=<%#Eval("ID")%>' class="A_edit">编辑</a><asp:LinkButton ID="LBtnDel" CommandName="Delete" class="A_Del" OnClientClick="return  confirm('你确认要删除吗?')" CommandArgument='<%#Eval("ID") %>'  runat="server">删除</asp:LinkButton></div></td>
					</tr>
				 </ItemTemplate>
			</asp:Repeater>
		</table>
<cc1:AspNetPager ID="ucPager" runat="server" NumericButtonTextFormatString="[{0}]" HorizontalAlign="right" ShowCustomInfoSection="Left" OnPageChanged="ucPager_PageChanged"></cc1:AspNetPager>
</div>
</form>
</body>
</html>
